package com.netty.server.base;

import io.netty.handler.logging.LogLevel;

/**
 * @author: 王霄
 * @date: 2022/1/17 13:13
 **/
public class TankParams {

    /**
     * 启动端口
     */
    private int port;
    /**
     * 处理connect的线程数
     */
    private int connectThreadCount;
    /**
     * 处理io的线程数
     */
    private int ioThreadCount;
    /**
     * 处理request请求的线程数
     */
    private int requestThreadCount;
    /**
     * 服务端日志级别
     */
    private LogLevel logLevel;
    /**
     * 通道多长时间没有收到数据开始发送心跳,单位ms
     */
    private long heartIdleTime;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getConnectThreadCount() {
        return connectThreadCount;
    }

    public void setConnectThreadCount(int connectThreadCount) {
        this.connectThreadCount = connectThreadCount;
    }

    public int getIoThreadCount() {
        return ioThreadCount;
    }

    public void setIoThreadCount(int ioThreadCount) {
        this.ioThreadCount = ioThreadCount;
    }

    public int getRequestThreadCount() {
        return requestThreadCount;
    }

    public void setRequestThreadCount(int requestThreadCount) {
        this.requestThreadCount = requestThreadCount;
    }

    public LogLevel getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(LogLevel logLevel) {
        this.logLevel = logLevel;
    }

    public long getHeartIdleTime() {
        return heartIdleTime;
    }

    public void setHeartIdleTime(long heartIdleTime) {
        this.heartIdleTime = heartIdleTime;
    }
}
